﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>判断是否安装了flash插件</title>
    <script  type="text/javascript" language="JavaScript">
        let  swf  =  new  ActiveXObject('ShockwaveFlash.ShockwaveFlash');                           //创建AcitiveXObject组件
        (swf)  ?  document.writeln('你已经安装了插件')  :  document.writeln('你没有安装插件');      //判断组件的值
    </script>
</head>
<body>

</body>
</html>